package com.info.zhiduoduo.repository.entity.system;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * <p>
 * 菜单管理
 * </p>
 *
 * @author bob
 * @since 2018-12-23
 */
@Data
@Accessors(chain = true)
@TableName("zdd_system_menu")
public class SystemMenu extends Model<SystemMenu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menuid", type = IdType.AUTO)
    private Integer menuid;
    /**
     * 菜单名
     */
    private String menuname;
    /**
     * 父类ID；0为根菜单
     */
    private Integer parentmenuid;
    /**
     * 0正常 1删除
     */
    private Integer datastate;
    /**
     * 菜单值
     */
    private Integer menuvalue;
    private Date createtime;


    @Override
    protected Serializable pkVal() {
        return this.menuid;
    }

}
